.class final Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;
.super Ljava/lang/Object;
.source "MobileAgent.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/mobileanalysis/MobileAgent;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "ReportMessageHandler"
.end annotation


# static fields
.field private static final mutex:Ljava/lang/Object;


# instance fields
.field private _agent:Lcom/netease/mobileanalysis/MobileAgent;

.field private _context:Landroid/content/Context;

.field private _fileName:Ljava/lang/String;

.field private _message:Lorg/json/JSONArray;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 765
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->mutex:Ljava/lang/Object;

    .line 764
    return-void
.end method

.method constructor <init>(Lcom/netease/mobileanalysis/MobileAgent;Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V
    .locals 1
    .parameter "_agent"
    .parameter "context"
    .parameter "message"
    .parameter "fileName"

    .prologue
    .line 770
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 771
    invoke-static {}, Lcom/netease/mobileanalysis/MobileAgent;->access$0()Lcom/netease/mobileanalysis/MobileAgent;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_agent:Lcom/netease/mobileanalysis/MobileAgent;

    .line 772
    iput-object p2, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_context:Landroid/content/Context;

    .line 773
    iput-object p3, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_message:Lorg/json/JSONArray;

    .line 774
    iput-object p4, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_fileName:Ljava/lang/String;

    .line 775
    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 779
    :try_start_0
    sget-object v2, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->mutex:Ljava/lang/Object;

    monitor-enter v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 780
    :try_start_1
    iget-object v1, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_agent:Lcom/netease/mobileanalysis/MobileAgent;

    iget-object v3, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_context:Landroid/content/Context;

    iget-object v4, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_message:Lorg/json/JSONArray;

    iget-object v5, p0, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;->_fileName:Ljava/lang/String;

    invoke-static {v1, v3, v4, v5}, Lcom/netease/mobileanalysis/MobileAgent;->access$1(Lcom/netease/mobileanalysis/MobileAgent;Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    .line 779
    monitor-exit v2

    .line 785
    :goto_0
    return-void

    .line 779
    :catchall_0
    move-exception v1

    monitor-exit v2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    .line 782
    :catch_0
    move-exception v0

    .line 783
    .local v0, e:Ljava/lang/Exception;
    const-string v1, "MobileAgent"

    const-string v2, "Exception occurred when sending message."

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method
